<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">


<title>志愿填报</title>
<meta name="keywords" content="">
<meta name="description" content="">

<link rel="shortcut icon" href="favicon.ico">
<link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="css/hadmin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link href="css/hadmin/css/plugins/iCheck/custom.css" rel="stylesheet">
<link href="css/hadmin/css/animate.css" rel="stylesheet">
<link href="css/hadmin/css/style.css?v=4.1.0" rel="stylesheet">
<style type="text/css">
	#yhydiv{
	text-align: center;
	
	}

</style>
</head>

<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-6">
				<div class="ibox float-e-margins">
				<c:if test="${list!=null}">
					<c:forEach items="${list}" var="school">
						<div class="ibox-title">
							<h3><b style="color:#009ACD">${school.Volunteer}-${school.SchoolName}
							<c:choose>
								<c:when test="${school.property==1}">
								(${school.wLowScore})
								</c:when>
								<c:otherwise>
								(${school.lLowScore})
								</c:otherwise>
							
							</c:choose>
							
							
							</b></h3>
						</div>
						<div class="ibox-content">

							<table class="table table-hover">
								<thead>
									<tr>
										<th></th>
										<th>专业代码</th>
										<th>专业名称</th>
									</tr>
								</thead>
								<tbody>
								
									<c:forEach items="${school.list}" var="list" varStatus="v">
										<tr>
											<td>${v.count}</td>
											<td>${list.pcode}</td>
											<td>${list.pname}</td>
										</tr>
										
									</c:forEach>
								</tbody>
							</table>
						</div>
					</c:forEach>
				</div>
			</div>
		</div>
	</div>
	<div id="yhydiv">
	<form action="ShowSchool.action" method="post">
		<input type="hidden" name = "score" value="${score }">
		<input type="hidden" name="property" value="${property }">
		<c:forEach items="${cCode }" var="c">
		
		<input type="hidden" name="cCode" value="${c }">
		
		</c:forEach>
		<button  type="submit" class="btn btn-w-m btn-info">换一换</button>
	</form>
	<button id="dayin" type="button" class="btn btn-w-m btn-info">打&nbsp;&nbsp;印</button>
	</div>
	
	</c:if>
	
	<c:if test="${list==null }">
		<center>
			<span style="font-size: 20px;color:red">${message}</span>
		</center>
	</c:if>	
	<!-- 全局js -->
	<script src="js/hadmin/js/jquery.min.js?v=2.1.4"></script>
	<script src="js/hadmin/js/bootstrap.min.js?v=3.3.6"></script>



	<!-- Peity -->
	<script src="js/hadmin/js/plugins/peity/jquery.peity.min.js"></script>

	<!-- 自定义js -->
	<script src="js/hadmin/js/content.js?v=1.0.0"></script>


	<!-- iCheck -->
	<script src="js/hadmin/js/plugins/iCheck/icheck.min.js"></script>

	<!-- Peity -->
	<script src="js/hadmin/js/demo/peity-demo.js"></script>

	<script>
		$(document).ready(function() {
			$('.i-checks').iCheck({
				checkboxClass : 'icheckbox_square-green',
				radioClass : 'iradio_square-green',
			});
		});
	</script>


 
    <script type="text/javascript">
    $("#dayin").click(function(){
        window.print();
 
		});
    </script>


</body>

</html>

